.mariolap >.container {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 100px;
    justify-content: space-between;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    width: 60%;
    align-items: center;
    max-height: 800px;
    gap: 10px;
}

.apartment-text-description {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.apartment-text-description .text-xl {
    margin-top: 0px;
}

.preview-image {
    width: 100%;
    height: 80%;
    cursor: pointer;
}
.preview-image img {
    width: 100%;
    height: 100%;
    height: 500px;
    object-fit: contain;
}

.preview-image:hover img{
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.thumbnails {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    margin-top: 10px;
    padding: 5px 0;
}

.thumbnail {
    width: 100px;
    height: 100px;
    margin: 0 10px;
    cursor: pointer;
    object-fit: cover;
}

.scroll-left, .scroll-right {
    padding: 0.2rem 0.2rem;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 6px;
}

.scroll-left {
    margin-right: 10px;
}

.scroll-right {
    margin-left: 10px;
}

.scroll-left:hover, .scroll-right:hover {
    background-color: #f5f5f5;
}


/* Overlay styling */
#overlay{
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0px; 
    left: 0px; 
    background-color: rgba(0,0,0,0.9); 
    display: none;
    z-index: 1;  
    overflow: auto; 
}


.overlay-content {
    margin: 100px auto;
    display: flex;
    width: 800px;
    height: 800px;
    flex-direction: column;
    align-items: center;
}

.overlay-image{
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.overlay-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.overlay-thumbnail {
    width: 80px;
    height: 80px;
    margin: 0 10px;
    cursor: pointer;
    object-fit: cover;
}

/* Add hover effect to enlarge thumbnails */
.thumbnail:hover, .overlay-thumbnail:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Reservation */

.calendar-contact {
    margin-top: 20px;
    margin-bottom: 100px;
}

.deluxe-maps {
    margin-top: auto;
    width: 100%;
}

.studio-maps {
    margin-top: auto;
    width: 100%;
}

/* Media Queries */

@media (max-width: 670px) {
    .mariolap >.container {
        flex-direction: column;    
    }

    .apartment-text-description {
        width: 100%;
        margin-bottom: 100px;
    }

    .image-gallery {
        width: 100%;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .thumbnails {
        padding: auto;
    }

    .thumbnail {
        margin: 0 5px;
    }

    .preview-image img {
        width: 100%;
        height: auto;
      }

}


